<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>11.扩展运算符的使用</title>
</head>

<body>
  <script type="text/javascript">
    /* 
  扩张运算符的使用
  */
    const arr = ["王俊凯", "王源", "易烊千玺"];
    //=>扩展运算符使用后，相当于"王俊凯", "王源", "易烊千玺"
    function func() {
      console.log(arguments);
    }
    func(...arr); //=>func("王俊凯", "王源", "易烊千玺")
  </script>
</body>

</html>